from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By


chrome_browser = webdriver.Chrome()
chrome_browser.get('https://www.so.com/')
chrome_browser.maximize_window()
control_element1 = chrome_browser.find_element(By.ID, 'input')
#输入python
control_element1.send_keys('python')

control_element2 = chrome_browser.find_element(By.ID, 'search-button')
control_element2.click()
print(chrome_browser.page_source)
